// This file was decompiled using VCSCM.ini published on 2021-01-30
{$CLEO .cs}

0000: NOP     
0001: wait 3000 ms



/*

                  
02CE: 7@ = ground_z -833.811 1294.8096 11.6845 
//032B: 2@ = create_weapon_pickup 271 3 ammo 200 at -833.811 1294.8096 7@
//0213: 2@ = create_pickup 271 type #TEARGAS at -833.811 1294.8096 11.6845 

                        */
//0001: wait 10000000000 ms 
//0055: put_player $PLAYER_CHAR at -892.9168 -341.2257 13.2859

//01B1: give_player $PLAYER_CHAR weapon 128 ammo 68 // Load the weapon model before using this
//01B8: set_player $PLAYER_CHAR armed_weapon_to 127

:Noname_2
0001: wait 100 ms 


0001: wait 100 ms 
00D6: if 
0038:   $onmission == 0 // $ == int 
004D: jump_if_false @Noname_2 

05E0: 5@ = read_memory 9930768 size 4 virtual_protect 0

00D6: if 
0039:   5@ == 3 // @ == int 
004D: jump_if_false @Noname_2 

0247: request_model 21
0001: wait 100 ms
038B: load_requested_models 
0001: wait 100 ms


009A: 8@ = create_actor_pedtype 4 model 21 at -910.018 -328.8 12.8 
0001: wait 100 ms

0001: wait 400 ms    
0173: set_actor 8@ z_angle_to 190.0      
03BC: 9@ = create_sphere -909.8150 -330.4140 13.8 0.75



:Noname_47
0001: wait 0 ms



05E0: 5@ = read_memory 9930768 size 4 virtual_protect 0

00D6: if 
8039:  not 5@ == 3 // @ == int 
then
   009B: destroy_actor_instantly 8@ 
    0001: wait 100 ms
   03BD: destroy_sphere 9@
    0002: jump @Noname_2
end 



010B: 0@ = player $PLAYER_CHAR money
0006: 1@ = 0 // @ = int

0001: wait 50 ms 
00D6: if and
0102:   actor $player_actor stopped_near_point_on_foot -909.7095 -330.4140 13.3 radius 1.0 1.0 1.0 sphere 0
0019:   0@ > 9 // @ > int
then
    00BC: text_highpriority 'bnkng1' time 5000 1 
    00D6: if 
    00E1:   player 0 pressed_button 4
    then   
        03BD: destroy_sphere 9@
        01B4: set_player $PLAYER_CHAR can_move 0
        :Noname_4711
        0001: wait 0 ms 
        00BC: text_highpriority 'bnkng2' time 200 1 
        
        00D6: if 
        00E1:   player 0 pressed_button 15   // increase
        then 
            010B: 0@ = player $PLAYER_CHAR money
            0001: wait 50 ms
            00D6: if and
            00E1:   player 0 pressed_button 15   // increase
            0019:   0@ > 9 // @ > int
            001B:   99999 > 1@ // int > @
            then
                1@ += 10
                0109: player $PLAYER_CHAR money += -10
            end
        end
         
        00D6: if
        00E1:   player 0 pressed_button 16 // decrease
        then 
           0001: wait 50 ms
            00D6: if and
            00E1:   player 0 pressed_button 16   // decrease
            0019:   1@ > 9 // @ > int 
            then  
                1@ -= 10
                0109: player $PLAYER_CHAR money += 10
            end
        end
        
        00D6: if 
        00E1:   player 0 pressed_button 17 // take money
        then 
            
            0001: wait 50 ms
            00D6: if
            00E1:   player 0 pressed_button 17   // decrease
            then 
                
                03BC: 9@ = create_sphere -909.8150 -330.4140 13.8 0.75
                04B8: get_weapon_data_from_actor $PLAYER_ACTOR slot 3 weapon 5@ ammo 3@ model 4@ 
                00D6: if or
                0039:  5@ == 0 // @ == int  
                0039:  5@ == -1 // @ == int
                then
                    0006: 5@ = 12 // @ = int  
                    0006: 3@ = 1 // @ = int
                    0006: 4@ = 270 // @ = int
                end
                00D6: if 
                0019:   1@ > 9 // @ > int
                then  
                    0247: request_model 271 
                    0001: wait 100 ms
                    038B: load_requested_models 
                    0001: wait 100 ms 
                    032B: 2@ = create_weapon_pickup #TEARGAS 3 ammo 1@ at -352.07 -396.09 10.0
                    01B4: set_player $PLAYER_CHAR can_move 1
                    0249: release_model #TEARGAS 
                end   
                016A: fade 0 1000 ms 
                0001: wait 1200 ms 
                01B1: give_player $PLAYER_CHAR weapon 14 ammo 1 // Load the weapon model before using this
                0055: put_player $player_char at -352.07 -396.09 10.0
                0001: wait 1200 ms
                0419: 7@ = player $PLAYER_CHAR weapon 14 ammo
                000E: 7@ -= 1 // @ -= int
                0109: player $PLAYER_CHAR money += 7@
                0001: wait 100 ms 
                0247: request_model 4@ 
                0001: wait 100 ms
                038B: load_requested_models 
                0001: wait 100 ms  
                01B1: give_player $PLAYER_CHAR weapon 5@ ammo 3@ // Load the weapon model before using this
                0055: put_player $player_char at -909.7095 -330.4140 12.8 
                016A: fade 1 4000 ms 
                01B8: set_player $PLAYER_CHAR armed_weapon_to 0
                0001: wait 1000 ms
                01B4: set_player $PLAYER_CHAR can_move 1 
                00BC: text_highpriority 'bnkng4' time 5000 1
                0001: wait 5000 ms  
                0002: jump @Noname_47
            end
        end
        
        00D6: if 
        00E1:   player 0 pressed_button 14 // exit
        then 
            
            0001: wait 50 ms
            00D6: if
            00E1:   player 0 pressed_button 14   // exit
            then  
                00D6: if 
                0019:   1@ > 9 // @ > int
                then  
                
                    03BC: 9@ = create_sphere -909.8150 -330.4140 13.8 0.75
                    0247: request_model 271 
                    0001: wait 100 ms
                    038B: load_requested_models 
                    0001: wait 100 ms 
                    032B: 2@ = create_weapon_pickup #TEARGAS 3 ammo 1@ at -352.07 -396.09 10.0
                    01B4: set_player $PLAYER_CHAR can_move 1
                    0249: release_model #TEARGAS 
                    00BC: text_highpriority 'bnkng3' time 5000 1 
                    0001: wait 5000 ms
                    0002: jump @Noname_47
                else   
                    03BC: 9@ = create_sphere -909.8150 -330.4140 13.8 0.75
                    01B4: set_player $PLAYER_CHAR can_move 1
                    00BC: text_highpriority 'bnkng3' time 5000 1 
                    0001: wait 5000 ms  
                    0002: jump @Noname_47
                end
            end
        end
        0002: jump @Noname_4711      
    end
else
    0002: jump @Noname_47
end







0002: jump @Noname_47 
